#！usr/bin/python
# -*- coding: UTF-8 -*-
def discounts(price, rate):
    final_price = price * rate
    old_prize = 88 #这里试图修改全局变量
    print('修改后old_prize的值是1：', old_prize)
    return final_price

old_prize = float(input('请输入原价:'))
rate = float(input('请输入折扣率：'))
new_prize = discounts(old_prize, rate)
print('修改后old_prize的价格是：', old_prize)
print('打折后的价格是：', new_prize)

#print('这里试图打印final_prize', final_prize)


